home *** CD-ROM | disk | FTP | other *** search
- package horst;
-
- public class ParagraphView extends BlockView {
- public ParagraphView(View parent, Element e, HTMLPane container) {
- super(parent, e, container);
- }
-
- protected boolean alignInBounds() {
- return super.m_alignment == 0;
- }
-
- protected void init() {
- ((View)this).setInsets(5, 0, 5, 0);
- if (super.m_parent != null && super.m_parent instanceof CenterView) {
- super.m_alignment = 1;
- } else {
- super.m_alignment = Utilities.setAlignmentProperty(false, 0, "align", super.m_elem.getAttributes());
- }
-
- }
-
- protected boolean isWrappable() {
- return true;
- }
- }
-